package bookstudytest.functioninterface;

import java.util.function.Consumer;

/**
 * @Author li.heng
 * @Date 2019/6/24 13
 * @Description:
 **/
public class ConsumerDemo {
    public static void main(String[] args) {
        Consumer<String> first = (o)-> System.out.println(o+"1");
        Consumer<String> second = first.andThen((o) -> System.out.println(o + ".....2"));
        second.accept("parameter");
    }
}
